package com.wxy.controller;

/**
 * @Author：wangxinyu
 * @Package：com.wxy.controller
 * @Project：Test_observer
 * @name：ObserverDemo
 * @Date：2024/7/31 19:49
 */
public class ObserverDemo {
    public static void main(String[] args) {
        Subject subject = new Subject();
        new BinaryObserver(subject);
        new OctalObserver(subject);
        subject.setState(10);
        subject.setState(10);

    }
}
